<%@page import="com.lagou.entity.UBasic"%>
<%@page import="com.lagou.biz.impl.UBasicBizImpl"%>
<%@page import="com.lagou.biz.UBasicBiz"%>
<%@page import="com.lagou.biz.UserBiz"%>
<%@page import="com.lagou.biz.impl.UserBizImpl"%>
<%@page import="com.lagou.entity.User"%>
<%@page import="java.net.URLDecoder"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%
	
	User user=(User) session.getAttribute("user");
	
				 if(user!=null){
	                 int uid=user.getUid();
	                 UBasicBiz uBasicBiz=new UBasicBizImpl();
	                 UBasic uba=uBasicBiz.queryByUid(uid);
	                 if(uba!=null){
	                   	session.setAttribute("UBasic", uba);
	                 }else{
	                	 uBasicBiz.addUBasic(uid);
	                	 uba=uBasicBiz.queryByUid(uid);
	                	 uba.setUser(user);
	                		session.setAttribute("UBasic", uba);
	                    }
	               }

	session.setAttribute("User", user);
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 <!-- 开始 top -->
	<div id="header">
    	<div class="wrapper">
    		<a class="logo" href="index.jsp">
    			<img width="229" height="43" alt="拉勾招聘-专注互联网招聘" src="style/images/logo.png">
    		</a>
    		<!-------------------------------------->
    		<!-- 未登录状态 -->
    		<c:if test="${User==null }">
    		<ul class="reset" id="navheader">
    			<li><a href="ToIndexServlet">首页</a></li>
					<li><a href="CompanyServlet?op=queryCompang">公司</a></li>
					<li><a href="ForumServlet?op=forum1" target="_blank">论坛</a></li>
					<li><a href="ToListServlet" rel="nofollow">职位</a></li>
	    	</ul>
              <ul class="loginTop">
            	<li><a href="login.jsp" rel="nofollow">登录</a></li> 
            	<li>|</li>
            	<li><a href="register.jsp" rel="nofollow">注册</a></li>
              </ul>
	    	</c:if>
	    	<!-- 登录状态 -->
	    	<c:if test="${User!=null }">
    		<ul class="reset" id="navheader">
    			<li><a href="ToIndexServlet">首页</a></li>
					<li><a href="CompanyServlet?op=queryCompang">公司</a></li>
					<li><a href="ForumServlet?op=forum1" target="_blank">论坛</a></li>
					<li><a href="ToListServlet" rel="nofollow">职位</a></li>
					<li><a rel="nofollow" href="ToResumeServlet">我的简历</a></li>
	    	</ul>
	    	<!---下拉菜单--------------------->
	    	<dl class="collapsible_menu">
            	<dt>
           			<span>${User.getUemail()}&nbsp;</span> 
            		<span class="red" id="noticeDot-0"></span>
            		<i></i>
            	</dt>
            	
               	<dd><a href="ToDeliveryServlet" rel="nofollow">简历投递状态</a></dd>
				<dd><a href="ToCollectionServlet">我收藏的职位</a></dd>
				<dd class="btm"><a href="ToMListServlet">我的职位推荐</a></dd>
				<dd><a href="geren_resume/gerenmodify.jsp">帐号设置</a></dd>
                <dd class="logout"><a rel="nofollow" href="UserOutServlet"  class="xiala">退出</a></dd>
            </dl>
            <div id="noticeTip">
            	<span class="bot"></span>
				<span class="top"></span>
				<a target="_blank" href="delivery.html"><strong>1</strong>条新投递反馈</a>
				<a class="closeNT" href="javascript:;"></a>
            </div>
            <!-------------------------------------->
            </c:if>
        </div>
    </div>
      <!--   <script src="style/js/core.min.js" type="text/javascript"></script>-->
  
  
